#ifndef _CAT_SPAWN_SCRIPT_H_
#define _CAT_SPAWN_SCRIPT_H_

/*
 *  CatSpawnScript.h
 *  
 *
 *  Created by Guo Wei Tan on 1/18/14.
 *  Copyright 2014 Catropico. All rights reserved.
 *
 */

#include "cocos2d.h"

class CatSpawnSet;

class CatSpawnScript 
{
private:
	cocos2d::CCArray* _pSpawnSets;
	int		_currentSet,
			_prespawnTimer;


public:
	//===== CONSTRUCTOR =====
	CatSpawnScript(cocos2d::CCArray* pSpawnSets=0);
	
	//===== DESTRUCTOR =====
	~CatSpawnScript();

	//===== FUNCTIONS =====
	cocos2d::CCArray* updateAndCheckForSpawns(float timeDiff);

	//===== SETTERS =====
	void addSpawnSet(CatSpawnSet* pNewSet);

	//===== GETTERS =====
	cocos2d::CCArray* getSpawnSet(){ return _pSpawnSets; }
};

#endif
